package com.ikun.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ikun.entity.CleaningOrders;
import com.ikun.entity.req.CleaningOrderDTO;

public interface CleaningOrdersDao {

    List<CleaningOrders> findAssignedOrders();

    List<CleaningOrders> findCompleted();

    List<CleaningOrders> findCreate();

    /**
     * 获取当前员工待处理的工单总数
     *
     * @param staffId 员工 ID
     * @return 工单总数
     */
    int getPendingOrdersCount(@Param("staffId") Integer staffId);

    /**
     * 获取当前员工待处理的工单列表
     *
     * @param staffId 员工 ID
     */
    List<CleaningOrders> getPendingOrders(@Param("staffId") Integer staffId);

    int createCleaning(CleaningOrders cleaningOrders);

    List<CleaningOrderDTO> getAllWorkOrdersByMangerId(@Param("mangerId") Integer mangerId);

    int assignStaff(@Param("orderId") Integer orderId, @Param("staffId") Integer staffId);

    int markOrderCompleted(@Param("orderId") String orderId, @Param("staffId") String staffId);

    // List<CleaningOrders> getcreateCleaning();

    // Integer createCleanings(String time);

}
